public class RandomLine{
  private int i1;
  private int i2;
  private int f1;
  private int f2;
  
  private color lColor;
  
  public RandomLine(){
    i1 = round ( random (width) );
    i2 = round ( random (height) );
    f1 = round ( random (width) );
    f2 = round ( random (height) );
    
    colorMode(RGB,255);
    lColor = color ( round(random(255)) , round(random(255)) , round(random(255)) );
  }
  
  public void draw(){
    stroke(lColor);
    line(i1,i2,f1,f2);
  }
}
